package com.ruicar.afs.cloud.contract.gateway.beans;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;

/**
 * The type GateWayResponse
 * <p>Description: </p>
 *
 * @author Fzero
 * @version 1.0
 * @date Created on 2020.07.20 21:17:41
 * @since 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GateWayResponse {
    /**
     * Status
     * <p>Description: </p>
     */
    private HttpStatus status = HttpStatus.OK;
    /**
     * Media type
     * <p>Description: </p>
     */
    private MediaType mediaType = MediaType.APPLICATION_JSON;
    /**
     * Data
     * <p>Description: </p>
     */
    private String data;

    /**
     * Gate way response
     *
     * @param data data
     */
    public GateWayResponse(String data) {
        this.data = data;
    }
}
